<#assign basePath=request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ request.getContextPath() + "/">

<!-- 分页代码 -->
<#macro page_index currentPage,pageCount>
	<#assign midder = currentPage>
	<#if midder < 6>
		<#assign start = 1>
		<#if (pageCount > 10)>
			<#assign end = 10>
		<#else>
			<#assign end = pageCount>
		</#if>
	<#else>
		<#if ((midder + 5) >= pageCount)>
			<#assign end = pageCount>
		<#else>
			<#assign end = midder + 5>
		</#if>
		<#if ((end - 10) > 0)>
			<#assign start = end - 10>
		<#else>
			<#assign start = 1>
		</#if>
	</#if>
	<DIV class="page_index">
      GO PAGE : &nbsp;<#if (midder > 5)><A href="javaScript:goPage(${start});">First</A></#if>
      <#list start..end as i>
      	<#if i == currentPage>
      		<A href="javaScript:goPage(${i});"><span class="page_index_current">&nbsp;${i}&nbsp;</span></A>
      	<#else>
      		<A href="javaScript:goPage(${i});">&nbsp;${i}&nbsp;</A>
      	</#if>
      </#list>
      <#if (pageCount > 11)><A href="javaScript:goPage(${pageCount});">&nbsp;Last&nbsp;</A></#if>
    </DIV>
</#macro>